package org.lex.dbq.model.service;

import java.io.File;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ClassCache {
	private static final ClassCache INSTANCE = new ClassCache();

	public static ClassCache getInstance() {
		return INSTANCE;
	}

	public void cache(String className, File file) {
		cache.put(className, file);
	}

	public File getFile(String className) {
		return cache.get(className);
	}

	private Map<String, File> cache = new ConcurrentHashMap<String, File>();

	private ClassCache() {
	}
}
